import request from '@/utils/request'
function getUrl(url) { return '/api' + url }

// 新增合同
export function addInExamineContract(data) {
    return request({
        url: getUrl('/admin/examine/addInExamineContract'),
        method: 'post',
        data
    })
}

// 编辑合同
export function updateInExamineContract(data) {
    return request({
        url: getUrl('/admin/examine/updateInExamineContract'),
        method: 'post',
        data
    })
}

// 删除合同
export function deleteInExamineContract(data) {
    return request({
        url: getUrl('/admin/examine/deleteInExamineContract'),
        method: 'post',
        data
    })
}

// 获取合同详情
export function getInExamineContract(data) {
    return request({
        url: getUrl('/admin/examine/getInExamineContract'),
        method: 'post',
        data
    })
}
